package com.distribute.application.api;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * api配置服务类
 */
@SuppressWarnings("unchecked")
@Component
public class ApiConfiguration implements ApplicationListener{
	static Boolean apiInited = false;
	@Override
	public void onApplicationEvent(ApplicationEvent event) {
		if(!apiInited){
			apiInited = true;
			ApiHelper.syncPackage("com.distribute.application.api");
		}
	}
}